<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增买卖登记')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-regislatorbuyorsellorsell-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电话号码：</label>
                <div class="col-sm-8">
                    <input name="phoneNumber" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买卖类型：</label>
                <div class="col-sm-8">
                    <input name="buyOrSellOrLent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">详细位置：</label>
                <div class="col-sm-8">
                    <input name="detailLocation" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否是房东：</label>
                <div class="col-sm-8" required>
                    <input type="radio" name="isMaster" value="1" checked />是&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="isMaster" value="0" />否
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input name="description" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">建筑面积：</label>
                <div class="col-sm-8">
                    <input name="buildingArea" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否包含家具：</label>
                <div class="col-sm-8" required>
                    <input type="radio" name="ifIncludeFurniture" value="1" checked />是&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="ifIncludeFurniture" value="0" />否
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">价格：</label>
                <div class="col-sm-8">
                    <input name="price" class="form-control" type="text">
                </div>
            </div>
        </form>

        
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/regislatorbuyorsellorsell"
        $("#form-regislatorbuyorsellorsell-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-regislatorbuyorsellorsell-add').serialize());
            }
        }
    </script>
</body>
</html>